<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width,initial-scale=1.0">
    <title>学生信息</title>
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/semantic-ui/2.2.4/semantic.min.css">
    <link rel="stylesheet" href="../../static/css/me.css" th:href="@{/css/me.css}">
</head>
<body>
<!--导航-->
<nav class="ui inverted attached segement m-padded-tb-mini">
    <!--    <div class="ui  container ">-->
    <div class="ui inverted menu">
        <h2 class=" ui teal header item">管理员端</h2>
        <a href="/admin/StudentInfo" class="item"><i class="tag icon"></i>学生信息</a>
        <a href="/admin/score" class="item"><i class="tag icon"></i>成绩管理</a>
        <a href="/admin/logout" class="item"><i class="power off icon"></i>退出登陆</a>

    </div>

</nav>
<!--中间-->
<div>
    <h2>添加课程：</h2>
    <form  class="ui form" th:action="@{/admin/addCourse}" th:object="${course}" method="post">
        <div class="field">
            <label>课程名：</label>
            <input type="text" name="courseName" th:value="*{courseName}">
        </div>
        <div class="field">
            <label>学年：</label>
            <input type="text" name="term" th:value="*{term}">
        </div>
        <div class="field">
            <label>任课老师：</label>
            <input type="text" name="teacher" th:value="*{teacher}">
        </div>
        <br>
        <div>
        <button class="ui fluidteal submit button">添加</button>&emsp;
        <a class="ui button" href="/admin/score">返回</a>
        </div>
        <div class="ui error negative mini message">1</div>
    </form>
    <br>
    <br>
    <br>
    <br>
    <br>
    <br>
    <br>
    <br>
    <br>
    <br>
    <br>
    <br>
    <br>
    <br>
    <br>
    <br>
    <br>
    <br>
    <br>
    <br>
    <br>
    <br>
    <br>
</div>


<!--底部-->
<footer class="ui inverted vertical segment m-padded-tb-masstive">
    <div class="ui center aligned container">
        <div class="ui inverted divided grid">
            <div class="three wide column">
                <img src="../../static/images/p1.jpeg" th:src="@{/images/p1.jpeg}" class="ui rounded image " >
            </div>
            <div class="six wide column">
                <h4 class="ui inverted header m-opacity-mini">联系我们</h4>
                <div class="ui inverted link list">
                    <h4></h4>
                    <h4 class="m-opacity-mini">Email:coke3_workmail@163.com</h4>
                    <h4 class="m-opacity-mini">Phone:13697712513</h4>
                </div>
            </div>
            <div class="seven wide column">
                <h4 class="ui inverted header m-opacity-mini">About</h4>

                <p class="m-text-lined m-opacity-mini m-text-spaced m-text-thin">
                    这是一个学生学籍管理系统，项目已开源 </p>
                <p class="m-text-lined m-opacity-mini m-text-spaced m-text-thin">
                    码云地址：https://gitee.com/Coke3/student,
                <p class="m-text-lined m-opacity-mini m-text-spaced m-text-thin">
                    SSH: git@gitee.com:Coke3/student.git</p>
                </p>
            </div>
        </div>
        <div class="ui inverted section divider"></div>
        <p class="m-text-lined m-opacity-mini m-text-spaced m-text-thin"> 吉林大学珠海学院 计算机科学与技术 </p>
    </div>

</footer>




<script src="https://cdn.jsdelivr.net/npm/jquery@3.2/dist/jquery.min.js"></script>
<script src="https://cdn.jsdelivr.net/semantic-ui/2.2.4/semantic.min.js"></script>
<!--非空验证-->
<script>
    $('.ui.form').form({
        fields : {
            course : {
                identifier: 'course',
                rules: [{
                    type : 'empty',
                    prompt: '请输入课程名'
                }]
            }
        }
    });
</script>
</body>
</html>